package nc;
import java.util.*;
import org.junit.*;
public class Xitong {
    public static void main(String[] args) {
        for (int i = 1; i <= 9; i++) {
            for (int j = 1; j <= i; j++) {
                System.out.print(j + "*" + i + "=" + i * j + "\t");
            }
            System.out.println();
        }

        System.out.println("2*5=10    ".length());
    }

    static class Main {
        public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            String s = sc.nextLine();
            Stack<String> stack = new Stack<>();
            while (!"-1".equals((s = sc.nextLine()))) {
                stack.push(s);
            }
            sc.close();
            while (!stack.isEmpty()) {
                System.out.print(stack.pop() + '\t');
            }
        }
    }

    @Test
    public void test() {
        System.out.printf("%-06d", 1);
        System.out.print("A");
    }
}
